<div class="row" >
    <div class="col-lg-4">
        <form role="form" name="input_barang" method="post" action="<?php echo site_url("jualbeli/input_barang");?>" enctype="multipart/form-data">
            <input type="hidden" name="id" value="<?php echo $id->ID_Barang+1;?>" />
            <div class="form-group">
                <label>Nama Barang</label> <input class="form-control" name="namabarang"/>
            </div>
            <div class="form-group">
                <label>Kategori</label>
                <select class="form-control" name="kategori">
                    <?php foreach($nama as $row){ ?>
                    <option value="<?php echo $row->ID_Kategori;?>"><?php echo $row->Nama; ?></option>
                    <?php }?>
                </select>
            </div>
            <div class="form-group">
                <label>Deskripsi</label>
                <textarea class="form-control" rows="3" name="deskripsi"></textarea>
            </div>
            <div class="form-group">
                <label>Harga</label> <input class="form-control" name="harga"/>
            </div>
            <div class="form-group">
                <label>Upload Gambar</label>
                <input type="file" name="gambar1">
            </div>
            <div class="form-group">
            <button type="submit" class="btn btn-primary">Simpan Data</button>
            </div>
        </form>    
    </div>
</div>